using System;


/// <summary>
/// Summary description for Account
/// </summary>
/// 
namespace CE.User
{
    public class Account
    {
        public Account()
        {
            //
            // TODO: Add constructor logic here
            //
            ClearFileds();
        }

        private Int64 _userid;
        private Int32 _userrole;
        private string _email;
        private string _authcode;
        private int _usertype;
        private Int64 _refuserid;
        private bool _status;
        private DateTime _createddate;
        private DateTime _modifieddate;

        public Int64 UserId
        {
            get { return _userid; }
            set { _userid = value; }
        }

        public Int32 UserRole
        {
            get { return _userrole; }
            set { _userrole = value; }
        }

        public string Email
        {
            get { return _email; }
            set { _email = value; }
        }

        public string AuthCode
        {
            get { return _authcode; }
            set { _authcode = value; }
        }

        public int UserTypeId
        {
            get { return _usertype; }
            set { _usertype = value; }
        }

        public Int64 RefUserId
        {
            get { return _refuserid; }
            set { _refuserid = value; }
        }

        public bool Status
        {
            get { return _status; }
            set { _status = value; }
        }

        public DateTime CreatedDate
        {
            get { return _createddate; }
            set { _createddate = value; }
        }

        public DateTime ModifiedDate
        {
            get { return _modifieddate; }
            set { _modifieddate = value; }
        }


        public void ClearFileds()
        {
            _userid = 0;
            _userrole = 0;
            _email = "";
            _authcode = "";
            _usertype = 0;
            _refuserid = 0;
            _status = false;
            _createddate = CE.Global.General.GetUTCDateTime();
            _modifieddate = CE.Global.General.GetUTCDateTime();
        }
    }
}